package com.jrx.anytxn.investor.service;


import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.i18n.response.TxnPage;
import com.jrx.anytxn.investor.entity.TlMistakeInvestorLog;
import com.jrx.anytxn.investor.entity.TlPaymentInvestorLog;
import com.jrx.anytxn.transaction.bean.DealMistakeBean;
import com.jrx.anytxn.transaction.dto.mistakeLog.MistakeLogRes;

import java.util.Date;

/**
 * @program: anytxn-cf-transaction
 * @description: 差错处理接口
 * @author: xiaoyu.jing
 * @date: 2019-10-24 09:49
 **/
public interface IInvestorMistakeService {

    /**
     * 处理差错记录
     * @param bean
     * @throws Exception
     */
     void dealMistakeRecord(DealMistakeBean bean) throws Exception;

     /**
      * 根据租户ID查询差错处理记录信息
      * @author fan.yang
      * date: 2019/10/24 0024 下午 17:47
      * @param pageNum 页码
      * @param pageSize 页大小
      * @param tenantId 租户ID
      * @return com.jrx.anytxn.common.data.TxnPage<com.jrx.anytxn.transaction.dto.mistakeLog.MistakeLogRes>
      */
    TxnPage<MistakeLogRes> findMistakeLogByTenId(Integer pageNum, Integer pageSize, String tenantId) throws TxnBizException;

    /**
     * 根据还款流水生成差错对象
     * @param log
     * @return
     */
    TlMistakeInvestorLog buildMistakeLog(TlPaymentInvestorLog log, Date bussinessDate) throws TxnBizException;




}
